﻿<div id="controlPanel">
<div id="controlPanelTitle">@Model.CollectionTitle</div>
    <ul>
    @if (Model.Links != null)
    {
        foreach (Presentation.Web.Client.Models.Link item in Model.Links)
        {
            <li>
                @if (!string.IsNullOrEmpty(item.Area))
                {
                    @Html.ActionLink(item.Name, item.Action, item.Control, new { area = item.Area }, null)
                }
                else
                {
                    @Html.ActionLink(item.Name, item.Action, item.Control)
                }
            </li>
        }
    }
    </ul>
</div>
